		<div class="ui-portlet">
			<ol class="breadcrumb">
			  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;{{__('Personal Center')}}</a></li>
			  <li class="active">我的日程</li>
			</ol>
		</div>        
       <hr>
       <div class="mb10">
       		<a class="btn btn-primary" href="{{$this->Html->url('/schedules/add')}}">新增日程</a>
       </div>
       <br/>
<ul class="nav nav-tabs">
  <li role="presentation" {{if empty($_REQUEST['deleted'])}} class="active" {{/if}}><a href="/schedules/mine"><i class="fa fa-list"></i>未完成</a></li>
  <li role="presentation" {{if $_REQUEST['deleted']}} class="active" {{/if}}><a href="/schedules/mine?deleted=1"><i class="fa fa-trash"></i> 已完成</a></li>
</ul>

       <div class=" ui-portlet" id="Schedule-mine-list">
		
       	{{$page_navi}}
	       <div class="row">
	       {{loop $datalist $k $item}}
	       	<div class="col-md-4">
	       		<div class="appmsg article-msg clearfix" id="wx-msg-{{$item['Schedule']['id']}}"  data-id="{{$item['Schedule']['id']}}">
		       		<div class="appmsg_content">
		       			{{if $item['Schedule']['coverimg']}}
			       			{{$this->Html->image($item['Schedule']['coverimg'],array('class'=>'cover'))}}
			       		{{/if}}
			       		<p class="title">
			       			{{$item['Schedule']['name']}}&nbsp;&nbsp;<a href="http://www.135yuedu.com/schedules/view/{{$item['Schedule']['id']}}?width=400{{if !$isPaid}}&expire={{urlencode($expire)}}{{/if}}{{if $c}}&c={{$c}}{{/if}}" data-toggle="tooltip" data-container="body" title="免费用户预览地址一小时有效，<br/>请勿将链接用于推广，以免过期无法访问" target="_blank">[{{__('Preview')}}]</a>
			       		</p>
			       		<p style="font-weight:normal;font-size: 12px;">{{$item['Schedule']['created']}}</p>
			       		<p>{{$item['Schedule']['word_event']}}</p>
			       		
			       		<p class="appmsg_desc summary">{{usubstr($item['Schedule']['summary'],0,32)}}</p>
		       		</div>
		       		<div class="appmsg_opr clearfix">
		       			
		       			{{if $item['Schedule']['deleted']}}
		       				{{$this->Html->link('<i data-toggle="tooltip" target="_blank" data-container="body" data-placement="top" title="恢复" class="fa fa-undo"></i>', array('controller'=>'schedules','action' => 'restore', $item['Schedule']['id']),array('class'=>'col-xs-4 opr-restore','onclick'=>'return ajaxAction(this.href,null,null,function(request){if(request.success || request.ret == 0){$(\'#wx-msg-'.$item['Schedule']['id'].'\').remove();} });','data-id'=>$item['Schedule']['id'],'escape'=>false))}}
		       				<a tabindex="0"  role="button" data-trigger="focus" href="javascript:void(0)" data-url="{{$this->Html->url('/schedules/delete/'.$item['Schedule']['id'])}}" class="col-xs-4 delete-pop" data-content="确定永久删除此素材？"><i title="{{__('Delete')}}" class="fa fa-remove"></i></a>
		       			{{else}}
		       				{{$this->Html->link('<i data-toggle="tooltip" target="_blank" data-container="body" data-placement="top" title="'.__('Edit').'" class="fa fa-edit"></i>', array('controller'=>'schedules','action' => 'edit', $item['Schedule']['id']),array('class'=>'col-xs-4 opr-edit','data-id'=>$item['Schedule']['id'],'escape'=>false))}}
		       				<a tabindex="0"  role="button" data-trigger="focus" href="javascript:void(0)" data-url="{{$this->Html->url('/schedules/trash/'.$item['Schedule']['id'])}}" class="col-xs-4 delete-pop" data-content="确定删除此素材？删除后将转移至回收站，30天后自动删除。"><i title="{{__('Trash')}}" class="fa fa-trash showtooltip"></i></a>
		       			{{/if}}
		       			{{$this->Html->link('<i title="历史版本" class="fa fa-list showtooltip"></i>', array('controller'=>'version_controls','action' => 'lists', 'Schedule',$item['Schedule']['id']),array('class'=>'col-xs-4','target'=>'_blank','data-id'=>$item['Schedule']['id'],'escape'=>false))}}
		       			
		       		</div>
	       		</div>
	       	</div>
	       	
	       	
	  		{{/loop}}
	    	</div>
    	{{$page_navi}}
    	
    	</div>